package com.ruoyi.gxs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gxs.mapper.GxsGradeMapper;
import com.ruoyi.gxs.domain.GxsGrade;
import com.ruoyi.gxs.service.IGxsGradeService;

/**
 * 活动等级Service业务层处理
 * 
 * @author gxs
 * @date 2024-05-08
 */
@Service
public class GxsGradeServiceImpl implements IGxsGradeService 
{
    @Autowired
    private GxsGradeMapper gxsGradeMapper;

    /**
     * 查询活动等级
     * 
     * @param gxsGradeId 活动等级主键
     * @return 活动等级
     */
    @Override
    public GxsGrade selectGxsGradeByGxsGradeId(Long gxsGradeId)
    {
        return gxsGradeMapper.selectGxsGradeByGxsGradeId(gxsGradeId);
    }

    @Override
    public GxsGrade selectGxsGradeByPendActivityId(Long PendActivityId) {
        return gxsGradeMapper.selectGxsGradeByPendActivityId(PendActivityId);
    }

    /**
     * 查询活动等级列表
     * 
     * @param gxsGrade 活动等级
     * @return 活动等级
     */
    @Override
    public List<GxsGrade> selectGxsGradeList(GxsGrade gxsGrade)
    {
        return gxsGradeMapper.selectGxsGradeList(gxsGrade);
    }

    /**
     * 新增活动等级
     * 
     * @param gxsGrade 活动等级
     * @return 结果
     */
    @Override
    public int insertGxsGrade(GxsGrade gxsGrade)
    {
        return gxsGradeMapper.insertGxsGrade(gxsGrade);
    }

    /**
     * 修改活动等级
     * 
     * @param gxsGrade 活动等级
     * @return 结果
     */
    @Override
    public int updateGxsGrade(GxsGrade gxsGrade)
    {
        return gxsGradeMapper.updateGxsGrade(gxsGrade);
    }

    /**
     * 批量删除活动等级
     * 
     * @param gxsGradeIds 需要删除的活动等级主键
     * @return 结果
     */
    @Override
    public int deleteGxsGradeByGxsGradeIds(Long[] gxsGradeIds)
    {
        return gxsGradeMapper.deleteGxsGradeByGxsGradeIds(gxsGradeIds);
    }

    /**
     * 删除活动等级信息
     * 
     * @param gxsGradeId 活动等级主键
     * @return 结果
     */
    @Override
    public int deleteGxsGradeByGxsGradeId(Long gxsGradeId)
    {
        return gxsGradeMapper.deleteGxsGradeByGxsGradeId(gxsGradeId);
    }
}
